package com.yyplatform.admin.platform.role.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * Created on 2024-09-13
 */
@Entity
@Getter
@Setter
@Table(name = "sys_user_dept")
public class SysUserDeptEntity extends BaseEntity {


    @Column(name = "user_id", nullable = false, columnDefinition = "bigint(20) comment '用户ID'")
    private Long userId;

    @Column(name = "dept_id", nullable = false, columnDefinition = "bigint(20) comment '部门ID'")
    private Long deptId;

    @Column(name = "is_main", nullable = false, columnDefinition = "tinyint(1) comment '是否主部门' ")
    private Boolean isMain;


    @Column(name = "is_leader", nullable = false, columnDefinition = "tinyint(1) comment '是否部门负责人' ")
    private Boolean isLeader;

    @Column(name = "remark", columnDefinition = "varchar(255) comment '备注' ")
    private String remark;


}
